package com.anyisn.anyflickr.shell.controller
{
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import com.anyisn.anyflickr.shell.model.SettingsProxy;
	import com.anyisn.anyflickr.shell.model.vo.SettingsVO;

	public class SettingsSaveCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void {
			var settingsP:SettingsProxy = facade.retrieveProxy(SettingsProxy.NAME) as SettingsProxy;
			var vo:SettingsVO = notification.getBody() as SettingsVO;
			settingsP.tilePerpage = vo.tilePerpage;
			settingsP.slidePerpage = vo.slidePerpage;
			settingsP.slideDelay = vo.slideDelay;
			settingsP.singleDownloadPath = vo.singleDownloadPath;
			settingsP.batchDownloadPath = vo.batchDownloadPath;
		}
	}
}